import * as modifyApi from '@/api/modify'

const state = {
  modifyList: {}
}
const mutations = {
  SET_MODIFY_LIST(state, newValue) {
    state.modifyList = newValue
  }
}

const actions = {
  async updateModifyList({ commit }, id) {
    const res = await modifyApi.modify(id)
    console.log('调薪', res)
    commit('SET_MODIFY_LIST', res)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
